-- GENERATED SPELL FOR [Dark Touched Warrior] --


function spell0_16156(pUnit, Event) --@Whirlwind,n/a--
pUnit:FullCastSpellOnTarget(55266,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16156', 6000, 1)
end

function spell1_16156(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(55267,pUnit)
pUnit:RegisterEvent('Sorts_16156', 541, 1)
end

function Sorts_16156(pUnit, Event)
local choix_sorts_16156 = math.random(0, 1)
if choix_sorts_16156 == 0 then
pUnit:RegisterEvent('spell0_16156', 1, 1)
end
if choix_sorts_16156 == 1 then
pUnit:RegisterEvent('spell1_16156', 1, 1)
end
end

function mob16156_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16156', math.random(1500, 3000), 1)
end

function mob16156_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16156_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16156_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16156, 1, 'mob16156_Action')
RegisterUnitEvent(16156, 2, 'mob16156_Leave')
RegisterUnitEvent(16156, 3, 'mob16156_Kill')
RegisterUnitEvent(16156, 4, 'mob16156_Die')
